picture showing the line of gang members and their guard dog surrendering to police has since gone viral in brazil .
the incident happened during a joint police and military operation in the neighbourhood of vargem grande , in the south brazilian state of santa catarina .